WAP to print table of any number in python